"""
多态
"""


class Animal:

    def roar(self):
        """
        pass 实现 作为抽象方法
        :return:
        """
        pass


class Lion(Animal):

    def roar(self):
        print("Lion roaring")


class Tiger(Animal):

    def roar(self):
        print("Tiger roaring")


def claw_strike(a: Animal):
    a.roar()
    print(f" striking ...")


if __name__ == '__main__':
    lion = Lion()
    tiger = Tiger()
    claw_strike(lion)
    claw_strike(tiger)
